package com.woniuxy.social.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 投票项表
 * </p>
 *
 * @author John_Yeung
 * @since 2020-09-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("VOTE_ITEM")
@ApiModel(value="VoteItem对象", description="投票项表")
@KeySequence("SEQ_VOTE_ITEM")
@NoArgsConstructor
@AllArgsConstructor
public class VoteItem implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "投票项表主键id")
    @TableId(value = "VOTE_ITEM_ID" , type = IdType.INPUT)
    private Integer voteItemId;

    @ApiModelProperty(value = "投票项所属投票活动id")
    @TableField("VOTE_ID")
    private Integer voteId;

    @ApiModelProperty(value = "投票项名称")
    @TableField("VOTE_ITEM_NAME")
    private String voteItemName;

    @ApiModelProperty(value = "投票项创造时间")
    @TableField("CREATE_DATE")
    private LocalDateTime createDate;

    @ApiModelProperty(value = "投票项选择人数")
    @TableField("CHOOSE_NUM")
    private Integer chooseNum;

    @ApiModelProperty(value = "投票项软删除，0为未删除，1为已删除")
    @TableField("FLAG")
    private Integer flag;


}
